% fwa main
addpath(genpath('./benchmark/'));
addpath(genpath('./FWA/'));
addpath(genpath('./FWA-DE'));

clc;
clear;
params.seeds = 5;
params.dimension = 30;
params.upper_bound = 20;
params.lower_bound = -20;
params.iterations = 200;
params.coef_explosion_sparks = 50;
params.coef_explosion_a = 0.04;
params.coef_explosion_b = 0.8;
params.coef_amplitude = 40;
params.mutation_number = 5;
params.scale_factor = 0.4;
params.crossover_rate = 0.2;
% params.func = @Sphere;
params.func = @Ackley;
% params.func = @Griewangk;

% result = FWA(params);
% plot(result);

result = FWA_DE(params);
plot(result);